package com.sanben.base.config;

import com.sanben.common.util.FileHandleUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author cyh
 * @description: 文件上传 配置类
 * @date: 2020-08-11
 */
@Configuration
public class FileConfig {
    @Value("${file.upload.type}")
    private String typeYml;
    @Value("${file.upload.bucket}")
    private String bucketYml;
    @Bean
    public void initConfig() {
        FileHandleUtil.type = typeYml;
        FileHandleUtil.bucket = bucketYml;
    }
}
